﻿@model NetSurveillance.WebApp.DataServices.Models.DataIMRecordResult

@{
    Layout = null;
    var checkIds = ViewBag.CheckIds as long[];
    bool isCurrDimRecord = ViewBag.DataIMRecordId != null && Model != null ? (ViewBag.DataIMRecordId == Model.Id) : false;
}
<tr class="@(isCurrDimRecord ? "currentDIMR" : string.Empty)">
    <td>
        @Html.CheckBox("checkedDataRecordIds", Model.Id, checkIds != null && Model != null && checkIds.Contains(Model.Id))
    </td>
    <td>
        @Html.DisplayFor(m => m.CreatedTime)
    </td>
    <td>
        @Html.DisplayFor(m => m.Sender)
    </td>
    <td>
        @Html.DisplayFor(m => m.Receiver)
    </td>
    <td>
        @Html.DisplayFor(m => m.Content)
    </td>
</tr>